<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<img id="img" src="" alt="">

<script>

    document.getElementById("img").onload = function () {
        console.log(1111)
    }

    document.getElementById("img").src = "./public/img/usreicon_40.png"




/*
*
* */
    /*var str = "27232419960712001X"
    var reg = /^\d{6}[12][0-9][0-9][0-9]((0[1-9])|(1[012]))((0[1-9])|(1[0-9])|(2[0-9])|(3[01]))\d{3}[0-9X]$/
    alert(reg.test(str))
*/
/*
var str = "你好@qq.com"

    var reg = /^[a-zA-Z0-9]+@[0-9a-zA-Z]+\.com$/

    alert(reg.test(str))
*/
var str = "谢谢楼主我的1231@yahu.com邮箱是：1077313809@qq.com好人一生平安，还有一个邮箱："
    var reg = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
console.log(reg.exec(str,"g"))
</script>
</body>
</html>